package si.yun.entity;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Id;
import javax.persistence.GeneratedValue;
import java.io.Serializable;
import java.math.BigDecimal;
/** 
 * @Author Cxc 
 * @Author QQ:1304793236 
 * @Date 2021-11-05 14:49:04 
 */
@Entity
@Table ( name ="sy_user_order" )
public class SyUserOrder  implements Serializable {

	private static final long serialVersionUID =  8930426430803965666L;

	/**
	 * 订单信息主键
	 */
   	@Column(name = "order_id" )
	private Integer orderId;

	/**
	 * 用户id
	 */
   	@Column(name = "user_id" )
	private Integer userId;

	/**
	 * 商品id
	 */
   	@Column(name = "product_id" )
	private Integer productId;

	/**
	 * 外键（用户地址表id）
	 */
   	@Column(name = "address_id" )
	private Integer addressId;

	/**
	 * 用户编号
	 */
   	@Column(name = "user_number" )
	private String userNumber;

	/**
	 * 订单编号
	 */
   	@Column(name = "order_no" )
	private String orderNo;

	/**
	 * 购买编号
	 */
   	@Column(name = "shop_id" )
	private String shopId;

	/**
	 * 订单状态(2待付款，3已付款，4待发货，5已发货，6已签收，7退货申请，8退货中，9已退货，10取消交易，11拒绝退货)
	 */
   	@Column(name = "order_status" )
	private Integer orderStatus;

	/**
	 * 商品数量
	 */
   	@Column(name = "product_count" )
	private Integer productCount;

	/**
	 * 商品总价
	 */
   	@Column(name = "price_total" )
	private BigDecimal priceTotal;

	/**
	 * 运费金额
	 */
   	@Column(name = "freight_amount" )
	private BigDecimal freightAmount;

	/**
	 * 订单金额
	 */
   	@Column(name = "logistics_fee" )
	private BigDecimal logisticsFee;

	/**
	 * 订单物流编号
	 */
   	@Column(name = "order_logistics_number" )
	private String orderLogisticsNumber;

	/**
	 * 商品类型(2视频，3商品)
	 */
   	@Column(name = "order_type" )
	private Integer orderType;

	/**
	 * 订单支付渠道(2.微信支付,3.余额支付4.未支付,5.支付宝支付)
	 */
   	@Column(name = "order_payment_channel" )
	private Integer orderPaymentChannel;

	/**
	 * 订单支付单号
	 */
   	@Column(name = "payment_order_no" )
	private String paymentOrderNo;

	/**
	 * 收货地址
	 */
   	@Column(name = "receiving_address" )
	private String receivingAddress;

	/**
	 * 付款时间
	 */
   	@Column(name = "payment_time" )
	private String paymentTime;

	/**
	 * 发货时间
	 */
   	@Column(name = "delivery_time" )
	private String deliveryTime;

	/**
	 * 订单来源(2小程序，3app)
	 */
   	@Column(name = "order_source" )
	private Integer orderSource;

	/**
	 * 是否已评论(2待评论,3已评论)
	 */
   	@Column(name = "comment" )
	private Integer comment;

	/**
	 * 用户备注
	 */
   	@Column(name = "remarks" )
	private String remarks;

	/**
	 * 创建时间
	 */
   	@Column(name = "create_date" )
	private String createDate;

	/**
	 * 更新人
	 */
   	@Column(name = "update_id" )
	private Integer updateId;

	/**
	 * 更新时间
	 */
   	@Column(name = "update_date" )
	private String updateDate;

	/**
	 * 商家id
	 */
   	@Column(name = "business_id" )
	private Integer businessId;

    /**
     * 订单过期时间
     */
    @Column(name = "order_expired_date" )
    private String orderExpiredDate;

    /**
     * 退货原因
     */
    @Column(name = "return_reason" )
    private String returnReason;

    /**
     * 收货人
     */
    @Column(name = "receiver_user" )
    private String receiverUser;

    /**
     * 收货人手机号
     */
    @Column(name = "receiver_phone" )
    private String receiverPhone;

    /**
     * 是否使用购物车( 2是  3否)
     */
    @Column(name = "do_use_shopping_cart" )
    private Integer doUseShoppingCart;


    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public Integer getOrderId() {
        return orderId;
    }

    public void setOrderId(Integer orderId) {
        this.orderId = orderId;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Integer getProductId() {
        return productId;
    }

    public void setProductId(Integer productId) {
        this.productId = productId;
    }

    public Integer getAddressId() {
        return addressId;
    }

    public void setAddressId(Integer addressId) {
        this.addressId = addressId;
    }

    public String getUserNumber() {
        return userNumber;
    }

    public void setUserNumber(String userNumber) {
        this.userNumber = userNumber;
    }

    public String getOrderNo() {
        return orderNo;
    }

    public void setOrderNo(String orderNo) {
        this.orderNo = orderNo;
    }

    public String getShopId() {
        return shopId;
    }

    public void setShopId(String shopId) {
        this.shopId = shopId;
    }

    public Integer getOrderStatus() {
        return orderStatus;
    }

    public void setOrderStatus(Integer orderStatus) {
        this.orderStatus = orderStatus;
    }

    public Integer getProductCount() {
        return productCount;
    }

    public void setProductCount(Integer productCount) {
        this.productCount = productCount;
    }

    public BigDecimal getPriceTotal() {
        return priceTotal;
    }

    public void setPriceTotal(BigDecimal priceTotal) {
        this.priceTotal = priceTotal;
    }

    public BigDecimal getFreightAmount() {
        return freightAmount;
    }

    public void setFreightAmount(BigDecimal freightAmount) {
        this.freightAmount = freightAmount;
    }

    public BigDecimal getLogisticsFee() {
        return logisticsFee;
    }

    public void setLogisticsFee(BigDecimal logisticsFee) {
        this.logisticsFee = logisticsFee;
    }

    public String getOrderLogisticsNumber() {
        return orderLogisticsNumber;
    }

    public void setOrderLogisticsNumber(String orderLogisticsNumber) {
        this.orderLogisticsNumber = orderLogisticsNumber;
    }

    public Integer getOrderType() {
        return orderType;
    }

    public void setOrderType(Integer orderType) {
        this.orderType = orderType;
    }

    public Integer getOrderPaymentChannel() {
        return orderPaymentChannel;
    }

    public void setOrderPaymentChannel(Integer orderPaymentChannel) {
        this.orderPaymentChannel = orderPaymentChannel;
    }

    public String getPaymentOrderNo() {
        return paymentOrderNo;
    }

    public void setPaymentOrderNo(String paymentOrderNo) {
        this.paymentOrderNo = paymentOrderNo;
    }

    public String getReceivingAddress() {
        return receivingAddress;
    }

    public void setReceivingAddress(String receivingAddress) {
        this.receivingAddress = receivingAddress;
    }

    public String getPaymentTime() {
        return paymentTime;
    }

    public void setPaymentTime(String paymentTime) {
        this.paymentTime = paymentTime;
    }

    public String getDeliveryTime() {
        return deliveryTime;
    }

    public void setDeliveryTime(String deliveryTime) {
        this.deliveryTime = deliveryTime;
    }

    public Integer getOrderSource() {
        return orderSource;
    }

    public void setOrderSource(Integer orderSource) {
        this.orderSource = orderSource;
    }

    public Integer getComment() {
        return comment;
    }

    public void setComment(Integer comment) {
        this.comment = comment;
    }

    public String getRemarks() {
        return remarks;
    }

    public void setRemarks(String remarks) {
        this.remarks = remarks;
    }

    public String getCreateDate() {
        return createDate;
    }

    public void setCreateDate(String createDate) {
        this.createDate = createDate;
    }

    public Integer getUpdateId() {
        return updateId;
    }

    public void setUpdateId(Integer updateId) {
        this.updateId = updateId;
    }

    public String getUpdateDate() {
        return updateDate;
    }

    public void setUpdateDate(String updateDate) {
        this.updateDate = updateDate;
    }

    public Integer getBusinessId() {
        return businessId;
    }

    public void setBusinessId(Integer businessId) {
        this.businessId = businessId;
    }

    public String getOrderExpiredDate() {
        return orderExpiredDate;
    }

    public void setOrderExpiredDate(String orderExpiredDate) {
        this.orderExpiredDate = orderExpiredDate;
    }

    public String getReturnReason() {
        return returnReason;
    }

    public void setReturnReason(String returnReason) {
        this.returnReason = returnReason;
    }

    public String getReceiverUser() {
        return receiverUser;
    }

    public void setReceiverUser(String receiverUser) {
        this.receiverUser = receiverUser;
    }

    public String getReceiverPhone() {
        return receiverPhone;
    }

    public void setReceiverPhone(String receiverPhone) {
        this.receiverPhone = receiverPhone;
    }

    public Integer getDoUseShoppingCart() {
        return doUseShoppingCart;
    }

    public void setDoUseShoppingCart(Integer doUseShoppingCart) {
        this.doUseShoppingCart = doUseShoppingCart;
    }

    @Override
    public String toString() {
        return "SyUserOrder{" +
                "orderId=" + orderId +
                ", userId=" + userId +
                ", productId=" + productId +
                ", addressId=" + addressId +
                ", userNumber='" + userNumber + '\'' +
                ", orderNo='" + orderNo + '\'' +
                ", shopId='" + shopId + '\'' +
                ", orderStatus=" + orderStatus +
                ", productCount=" + productCount +
                ", priceTotal=" + priceTotal +
                ", freightAmount=" + freightAmount +
                ", logisticsFee=" + logisticsFee +
                ", orderLogisticsNumber='" + orderLogisticsNumber + '\'' +
                ", orderType=" + orderType +
                ", orderPaymentChannel=" + orderPaymentChannel +
                ", paymentOrderNo='" + paymentOrderNo + '\'' +
                ", receivingAddress='" + receivingAddress + '\'' +
                ", paymentTime='" + paymentTime + '\'' +
                ", deliveryTime='" + deliveryTime + '\'' +
                ", orderSource=" + orderSource +
                ", comment=" + comment +
                ", remarks='" + remarks + '\'' +
                ", createDate='" + createDate + '\'' +
                ", updateId=" + updateId +
                ", updateDate='" + updateDate + '\'' +
                ", businessId=" + businessId +
                ", orderExpiredDate='" + orderExpiredDate + '\'' +
                ", returnReason='" + returnReason + '\'' +
                ", receiverUser='" + receiverUser + '\'' +
                ", receiverPhone='" + receiverPhone + '\'' +
                ", doUseShoppingCart=" + doUseShoppingCart +
                '}';
    }
}
